package com.appsky.drift.api;

public class Utils {

	private Utils() {
	};

	public static final int START_PROGRESS = 0;

	public static final int LOGIN_SUCCESS = 1;

	public static final int REGISTER_SUCCESS = 2;

	public static final int LOGIN_TIMEOUT = 3;

	public static final int LOGIN_ERROR = 4;

	public static final String PREF_GLOBAL = "GlobalPrefFile";

	public static final String ACTION_SEND_MESSAGE = "action_send_message";

	public static final String ACTION_CHAT_MESSAGE_RECEIVER = "action_chat_message_receiver";

	/**
	 * 判断字符串是否不为空
	 * 
	 * @param s
	 * @return
	 */
	public static boolean isNotNullString(String s) {
		if (s == null) {
			return false;
		}
		s = s.trim();
		if (s.equals("") || s.equals("null")) {
			return false;
		}
		return true;
	}

	/**
	 * 判断字符串是否为空
	 * 
	 * @param s
	 * @return
	 */
	public static boolean isNullString(String s) {
		return !isNotNullString(s);
	}


}
